/*
 * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

namespace TencentCloud.Bsca.V20210811.Models
{
    using Newtonsoft.Json;
    using System.Collections.Generic;
    using TencentCloud.Common;

    public class VulnerabilityDetail : AbstractModel
    {
        
        /// <summary>
        /// 漏洞类别
        /// </summary>
        [JsonProperty("Category")]
        public string Category{ get; set; }

        /// <summary>
        /// 漏洞分类
        /// </summary>
        [JsonProperty("CategoryType")]
        public string CategoryType{ get; set; }

        /// <summary>
        /// 漏洞描述
        /// </summary>
        [JsonProperty("Description")]
        public string Description{ get; set; }

        /// <summary>
        /// 漏洞官方解决方案
        /// </summary>
        [JsonProperty("OfficialSolution")]
        public string OfficialSolution{ get; set; }

        /// <summary>
        /// 漏洞信息参考列表
        /// </summary>
        [JsonProperty("ReferenceList")]
        public string[] ReferenceList{ get; set; }

        /// <summary>
        /// 漏洞防御方案
        /// </summary>
        [JsonProperty("DefenseSolution")]
        public string DefenseSolution{ get; set; }

        /// <summary>
        /// 漏洞CVSSv2信息
        /// 注意：此字段可能返回 null，表示取不到有效值。
        /// </summary>
        [JsonProperty("CVSSv2Info")]
        public CVSSV2Info CVSSv2Info{ get; set; }

        /// <summary>
        /// 漏洞CVSSv3信息
        /// 注意：此字段可能返回 null，表示取不到有效值。
        /// </summary>
        [JsonProperty("CVSSv3Info")]
        public CVSSV3Info CVSSv3Info{ get; set; }

        /// <summary>
        /// 漏洞提交时间
        /// </summary>
        [JsonProperty("SubmitTime")]
        public string SubmitTime{ get; set; }

        /// <summary>
        /// CWE编号
        /// </summary>
        [JsonProperty("CWEID")]
        public string CWEID{ get; set; }

        /// <summary>
        /// 漏洞CVSSv2向量
        /// </summary>
        [JsonProperty("CVSSv2Vector")]
        public string CVSSv2Vector{ get; set; }

        /// <summary>
        /// 漏洞CVSSv3向量
        /// </summary>
        [JsonProperty("CVSSv3Vector")]
        public string CVSSv3Vector{ get; set; }


        /// <summary>
        /// For internal usage only. DO NOT USE IT.
        /// </summary>
        public override void ToMap(Dictionary<string, string> map, string prefix)
        {
            this.SetParamSimple(map, prefix + "Category", this.Category);
            this.SetParamSimple(map, prefix + "CategoryType", this.CategoryType);
            this.SetParamSimple(map, prefix + "Description", this.Description);
            this.SetParamSimple(map, prefix + "OfficialSolution", this.OfficialSolution);
            this.SetParamArraySimple(map, prefix + "ReferenceList.", this.ReferenceList);
            this.SetParamSimple(map, prefix + "DefenseSolution", this.DefenseSolution);
            this.SetParamObj(map, prefix + "CVSSv2Info.", this.CVSSv2Info);
            this.SetParamObj(map, prefix + "CVSSv3Info.", this.CVSSv3Info);
            this.SetParamSimple(map, prefix + "SubmitTime", this.SubmitTime);
            this.SetParamSimple(map, prefix + "CWEID", this.CWEID);
            this.SetParamSimple(map, prefix + "CVSSv2Vector", this.CVSSv2Vector);
            this.SetParamSimple(map, prefix + "CVSSv3Vector", this.CVSSv3Vector);
        }
    }
}

